package hu;

import java.util.Scanner;

public class hu4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int num = str.length() / 8;
        int last = str.length() % 8;
        for (int i = 0; i < num; i++) {
            System.out.println(str.substring(i * 8, (i + 1) * 8));
        }
        if(last != 0){
            System.out.print(str.substring(num * 8));
            for (int i = 0; i < 8 - last; i++) {
                System.out.print(0);
            }
        }
    }
}
